package com.nhh.v.service;

import com.nhh.v.mapper.UsersMapper;
import com.nhh.v.model.Users;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 对应系统users
 *
 * User: Allen.qin
 * Date: 2018/9/1
 */
@Slf4j
@Service
@Transactional
public class AdminUsersService {

    @Autowired
    private UsersMapper usersMapper;

    public Users findOne(Integer id) {
        return usersMapper.selectByPrimaryKey(id);
    }
}
